package effect;

/**
 * Steals gold when attacking.
 * @author Oscar
 *
 */
public class Pickpocket extends Effect {
	public Pickpocket(){
		name="Pickpocket";
		description="The creature steals one gold from the opponents whose creature he attacks.";
		imageName="barbarianIconSmallTemp.png";
		effectTypes.add(EffectType.triggerOnAttackInitiation);
	}
	
	@Override
	public void triggerOnAttackInitiation(core.Tile attack, core.Tile defend){
		attack.getOccupyingPlayer().addGold(1);
		defend.getOccupyingPlayer().substractGold(1);
		System.out.println("Pickpocket");
	}
}
